//
//  SizeforLabel.m
//  B段项目_面包旅行
//
//  Created by dllo on 15/12/15.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "SizeforLabel.h"


@implementation SizeforLabel

+(CGSize)labelRectWithSize:(CGSize)size
                 LabelText:(NSString *)labelText
                      Font:(UIFont *)font{
    
    NSDictionary  *dic = [NSDictionary dictionaryWithObjectsAndKeys:font, NSFontAttributeName, nil];
    CGSize actualsize = [labelText boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil].size;
    
    
    return actualsize;
    
}


@end
